/**
 * @author Administrator
 */
public class While3 {
    public static void main(String[] args) {
        int i=100;
        while(i>=100 & i<=999){
            int a=i/100;
            int b=(i/10)%10;
            int c=i%10;
            if(i==a*a*a+b*b*b+c*c*c){
                System.out.println(i+"是水仙花数");
            }
            i++;
        }
    }
}
